﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace NCRGEA
{
    public static class Logger
    {
        public static void Log(string msg)
        {
            try
            {
                string file = Path.Combine(Application.StartupPath, "app.log");
                StreamWriter fAppend = File.AppendText(file);
                fAppend.WriteLine(DateTime.Now.ToLongDateString() + " " + DateTime.Now.ToLongTimeString() + " - " + msg);
                fAppend.Close();
            }
            catch (Exception)
            {
            }
        }
    }
}
